package homework07;

public class PrimeNumber1 {
    public static void main(String[] args) {

        for (int num = 0; num < 100; num++) {
            boolean flag=true;
            for (int i = 2; i <=num/2 ; i++) {
                if (num%i==0){
                    flag=false;
                    break;
                }
            }
            if (flag){
                System.out.println(num);
            }
        }


























      /*  for (int num = 8; num <= 99; num++) {
            boolean flag=true;
            for (int i =2; i <num / 2; i++) {
                if (num%i==0){
                    flag=false;
                    break;
                }
            }
            if (flag){
                System.out.println(num);
            }
        }

       */




    }
}
